package com.css.zfzx.sjcj.modules.drill.Entity;

import cn.afterturn.easypoi.excel.annotation.Excel;

import javax.persistence.*;
import java.util.Objects;

/**
 * @Description:
 * @Author: Li Helei
 * @CreateDate: 2021/1/18 10:33
 * @Version: 1.0
 **/
@Entity
@Table(name = "qh_y04", schema = "base")
public class QhY04Entity {
    private String id;
    @Excel(name = "地层序号",orderNum = "1")
    private Integer assiseNumber;
    @Excel(name = "地层编号",orderNum = "2")
    private String assiseCode;
    @Excel(name = "地层年代",orderNum = "3")
    private String formationAge;
    @Excel(name = "时代成因",orderNum = "4")
    private String causeAge;
    @Excel(name = "层底深度（m）",orderNum = "5")
    private Double bottomDepth;
    @Excel(name = "分层厚度（m）",orderNum = "6")
    private Double layerThickness;
    @Excel(name = "岩土名称",orderNum = "7")
    private String geotechnicalName;
    @Excel(name = "岩土特征",orderNum = "8")
    private String geotechnicalCharacteristics;
    private String isValid;
    private String drillId;

    @Id
    @Column(name = "id")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "assise_number")
    public Integer getAssiseNumber() {
        return assiseNumber;
    }

    public void setAssiseNumber(Integer assiseNumber) {
        this.assiseNumber = assiseNumber;
    }

    @Basic
    @Column(name = "assise_code")
    public String getAssiseCode() {
        return assiseCode;
    }

    public void setAssiseCode(String assiseCode) {
        this.assiseCode = assiseCode;
    }

    @Basic
    @Column(name = "formation_age")
    public String getFormationAge() {
        return formationAge;
    }

    public void setFormationAge(String formationAge) {
        this.formationAge = formationAge;
    }

    @Basic
    @Column(name = "cause_age")
    public String getCauseAge() {
        return causeAge;
    }

    public void setCauseAge(String causeAge) {
        this.causeAge = causeAge;
    }

    @Basic
    @Column(name = "bottom_depth")
    public Double getBottomDepth() {
        return bottomDepth;
    }

    public void setBottomDepth(Double bottomDepth) {
        this.bottomDepth = bottomDepth;
    }

    @Basic
    @Column(name = "layer_thickness")
    public Double getLayerThickness() {
        return layerThickness;
    }

    public void setLayerThickness(Double layerThickness) {
        this.layerThickness = layerThickness;
    }

    @Basic
    @Column(name = "geotechnical_name")
    public String getGeotechnicalName() {
        return geotechnicalName;
    }

    public void setGeotechnicalName(String geotechnicalName) {
        this.geotechnicalName = geotechnicalName;
    }

    @Basic
    @Column(name = "geotechnical_characteristics")
    public String getGeotechnicalCharacteristics() {
        return geotechnicalCharacteristics;
    }

    public void setGeotechnicalCharacteristics(String geotechnicalCharacteristics) {
        this.geotechnicalCharacteristics = geotechnicalCharacteristics;
    }

    @Basic
    @Column(name = "is_valid")
    public String getIsValid() {
        return isValid;
    }

    public void setIsValid(String isValid) {
        this.isValid = isValid;
    }

    @Basic
    @Column(name = "drill_id")
    public String getDrillId() {
        return drillId;
    }

    public void setDrillId(String drillId) {
        this.drillId = drillId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        QhY04Entity that = (QhY04Entity) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(assiseNumber, that.assiseNumber) &&
                Objects.equals(assiseCode, that.assiseCode) &&
                Objects.equals(formationAge, that.formationAge) &&
                Objects.equals(causeAge, that.causeAge) &&
                Objects.equals(bottomDepth, that.bottomDepth) &&
                Objects.equals(layerThickness, that.layerThickness) &&
                Objects.equals(geotechnicalName, that.geotechnicalName) &&
                Objects.equals(geotechnicalCharacteristics, that.geotechnicalCharacteristics) &&
                Objects.equals(isValid, that.isValid) &&
                Objects.equals(drillId, that.drillId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, assiseNumber, assiseCode, formationAge, causeAge, bottomDepth, layerThickness, geotechnicalName, geotechnicalCharacteristics, isValid, drillId);
    }
}
